# -*- coding: utf-8 -*-
"""
@Time ： 2023/9/15 13:54
@Auth ： y.h
@File ：price_entity.py
@IDE ：PyCharm
@Motto：The sooner you start to code, the longer the program will take. —— Roy Carlson
"""


class price_entity:
    __num = None
    __name = None
    __id = None
    __price = None
    __vendor = None

    # getter and setter
    def get_num(self):
        return self.__num

    def set_num(self, num):
        self.__num = num
        return self

    def get_name(self):
        return self.__name

    def set_name(self, name):
        self.__name = name
        return self

    def get_id(self):
        return self.__id

    def set_id(self, the_id):
        self.__id = the_id
        return self

    def get_price(self):
        return self.__price

    def set_price(self, price):
        self.__price = price
        return self

    def get_vendor(self):
        return self.__vendor

    def set_vendor(self, vendor):
        self.__vendor = vendor
        return self

    def get_entity_list(self) -> list:
        return [self.__num,
                self.__name,
                self.__id,
                self.__price,
                self.__vendor]
